using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using Backend.JYD.AModel.Models.Mapping;

namespace Backend.JYD.AModel.Models
{
    public partial class dbjydcomContext : DbContext
    {
        static dbjydcomContext()
        {
            Database.SetInitializer<dbjydcomContext>(null);
        }

        public dbjydcomContext()
            : base("Name=dbjydcomContext")
        {
        }

        public DbSet<AuthorityInfo> AuthorityInfoes { get; set; }
        public DbSet<AutoBidSetting> AutoBidSettings { get; set; }
        public DbSet<BidRecord> BidRecords { get; set; }
        public DbSet<BidStat> BidStats { get; set; }
        public DbSet<CodeInfo> CodeInfoes { get; set; }
        public DbSet<CodeType> CodeTypes { get; set; }
        public DbSet<CreditHistory> CreditHistories { get; set; }
        public DbSet<CustAddress> CustAddresses { get; set; }
        public DbSet<CustAsset> CustAssets { get; set; }
        public DbSet<CustBase> CustBases { get; set; }
        public DbSet<CustContact> CustContacts { get; set; }
        public DbSet<CustEstate> CustEstates { get; set; }
        public DbSet<CustMarketingInfo> CustMarketingInfoes { get; set; }
        public DbSet<CustPhone> CustPhones { get; set; }
        public DbSet<EmpAuthInfo> EmpAuthInfoes { get; set; }
        public DbSet<EmpInfo> EmpInfoes { get; set; }
        public DbSet<EmpRoleInfo> EmpRoleInfoes { get; set; }
        public DbSet<Estate> Estates { get; set; }
        public DbSet<Income> Incomes { get; set; }
        public DbSet<IncurDebt> IncurDebts { get; set; }
        public DbSet<IntentEntryInfo> IntentEntryInfoes { get; set; }
        public DbSet<InviteInfo> InviteInfoes { get; set; }
        public DbSet<MenuAuthInfo> MenuAuthInfoes { get; set; }
        public DbSet<MenuInfo> MenuInfoes { get; set; }
        public DbSet<PayPlan> PayPlans { get; set; }
        public DbSet<RatingSource> RatingSources { get; set; }
        public DbSet<RoleAuthInfo> RoleAuthInfoes { get; set; }
        public DbSet<RoleInfo> RoleInfoes { get; set; }
        public DbSet<TaskBaseInfo> TaskBaseInfoes { get; set; }
        public DbSet<TaskBaseInfo_Old> TaskBaseInfo_Old { get; set; }
        public DbSet<TaskModel> TaskModels { get; set; }
        public DbSet<TaskPropertyInfo> TaskPropertyInfoes { get; set; }
        public DbSet<TaskStepInfo> TaskStepInfoes { get; set; }
        public DbSet<TaskStepModel> TaskStepModels { get; set; }
        public DbSet<TaskStepModelCondition> TaskStepModelConditions { get; set; }
        public DbSet<TaskStepModelProperty> TaskStepModelProperties { get; set; }
        public DbSet<UserAccount> UserAccounts { get; set; }
        public DbSet<UserInfo> UserInfoes { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new AuthorityInfoMap());
            modelBuilder.Configurations.Add(new AutoBidSettingMap());
            modelBuilder.Configurations.Add(new BidRecordMap());
            modelBuilder.Configurations.Add(new BidStatMap());
            modelBuilder.Configurations.Add(new CodeInfoMap());
            modelBuilder.Configurations.Add(new CodeTypeMap());
            modelBuilder.Configurations.Add(new CreditHistoryMap());
            modelBuilder.Configurations.Add(new CustAddressMap());
            modelBuilder.Configurations.Add(new CustAssetMap());
            modelBuilder.Configurations.Add(new CustBaseMap());
            modelBuilder.Configurations.Add(new CustContactMap());
            modelBuilder.Configurations.Add(new CustEstateMap());
            modelBuilder.Configurations.Add(new CustMarketingInfoMap());
            modelBuilder.Configurations.Add(new CustPhoneMap());
            modelBuilder.Configurations.Add(new EmpAuthInfoMap());
            modelBuilder.Configurations.Add(new EmpInfoMap());
            modelBuilder.Configurations.Add(new EmpRoleInfoMap());
            modelBuilder.Configurations.Add(new EstateMap());
            modelBuilder.Configurations.Add(new IncomeMap());
            modelBuilder.Configurations.Add(new IncurDebtMap());
            modelBuilder.Configurations.Add(new IntentEntryInfoMap());
            modelBuilder.Configurations.Add(new InviteInfoMap());
            modelBuilder.Configurations.Add(new MenuAuthInfoMap());
            modelBuilder.Configurations.Add(new MenuInfoMap());
            modelBuilder.Configurations.Add(new PayPlanMap());
            modelBuilder.Configurations.Add(new RatingSourceMap());
            modelBuilder.Configurations.Add(new RoleAuthInfoMap());
            modelBuilder.Configurations.Add(new RoleInfoMap());
            modelBuilder.Configurations.Add(new TaskBaseInfoMap());
            modelBuilder.Configurations.Add(new TaskBaseInfo_OldMap());
            modelBuilder.Configurations.Add(new TaskModelMap());
            modelBuilder.Configurations.Add(new TaskPropertyInfoMap());
            modelBuilder.Configurations.Add(new TaskStepInfoMap());
            modelBuilder.Configurations.Add(new TaskStepModelMap());
            modelBuilder.Configurations.Add(new TaskStepModelConditionMap());
            modelBuilder.Configurations.Add(new TaskStepModelPropertyMap());
            modelBuilder.Configurations.Add(new UserAccountMap());
            modelBuilder.Configurations.Add(new UserInfoMap());
        }
    }
}
